SET SERVICE_NAME=redis
SET IMAGE_NAME=redis
SET VERSION=7.2.4
SET PORT=6379
SET DIR=/c/home/app/docker/%SERVICE_NAME%

docker stop %SERVICE_NAME%
docker rm %SERVICE_NAME%
docker run -d --restart=always ^
-p %PORT%:%PORT% ^
-v %DIR%/conf/:/etc/redis/redis.conf/ ^
--name %SERVICE_NAME% %IMAGE_NAME%:%VERSION% redis-server /etc/redis/redis.conf